
<template>
  <div style="height: 100%">
    <!-- 弹窗 -->
    <el-dialog v-model="store.practiceOpen" :show-close="false" append-to-body class="dialogClass" fullscreen draggable
               :header="null"
               :footer="null"
    >
      <practice-question-componet :bank-id="store.bankId" :bank-name="store.bankName"  @close="closeDialog"/>
    </el-dialog>
  </div>
</template>
<script setup lang="ts">

import PracticeQuestionComponet from "@/components/practice/practiceQuestionComponet.vue";
import {practiceStore} from "@/stores/practice/practice.ts";
import {defineEmits} from "vue";
const store=practiceStore()
const emit = defineEmits(['refresh'])
const closeDialog = () => {
  store.setPracticeOpen(false);
  store.setBankId(0);
  emit("refresh")
};
</script>

<style scoped>

</style>